Xbasic

UI_DLG_CTL_CURRENT Function

Syntax

Definition as C = UI_DLG_CTL_CURRENT(C title)

Arguments

Definition

The Xdialog code for the control.

title

The name of the dialog box.

Description

Get the definition of the current control in the named dialog.

Discussion

The UI_DLG_CTL_CURRENT() function retrieves the definition of the current control in the named dialog.

Example

This example in two parts. First, start a modeless Xdialog.

ui_modeless_dlg_box("Basic Modeless Dialog", <<%dlg%
{xmargin=10}
{ymargin=2}
<20,2Click Here!MyButton>{sp=2}<20,2Or Click Here!MyOtherButton>
%dlg%)

Then check to see the definition of the current control.

? ui_dlg_ctl_current("Basic Modeless Dialog")
=
<20,2Click Here!MyButton>

Limitations

Desktop applications only.

See Also